#pragma once

#include "Point3d.h"
#include "Plane3d.h"
#include "Line3d.h"

class Triangle3d
  {
  public:
    Triangle3d(Point3d i_point1,Point3d i_point2,Point3d i_point3);

    void SetPoints(Point3d i_point1,Point3d i_point2,Point3d i_point3);

    Point3d GetPoint(int i_what_point);
    void GetAllPoints(Point3d &o_point1, Point3d &o_point2, Point3d &o_point3); 

    bool IsTriangleAndLineIntersects( Line3d i_line);
    bool IsTrianglesIntersects( Triangle3d i_triangle);
  private:
    Point3d m_point1, m_point2, m_point3;
  };